package com.icedata.sika.core

import com.icedata.sika.bridge.*

/**
 * 指令类
 */
open class Command (val event: SikaEvent) {
    //TODO
    val sender: SikaUserContact by lazy {
        return@lazy event.sender
    }
    val sendGroup: SikaGroupContact? by lazy {
        if (event is SikaGroupEvent)
            return@lazy event.sendGroup
        return@lazy null
    }
    val message: SikaMessageChain by lazy {
        return@lazy event.message
    }
}